<template>
	<view class="result-container">
		<view>
			<uni-icons :type="result === 1 ? 'spinner-cycle' : result === 2 ? 'checkmarkempty' : result === 3 ? 'closeempty' : ''" size="30"></uni-icons>
		</view>
		<text>{{ text }}}</text>
	</view>
</template>

<script>
	export default {
		props: {
			result: {
				type: Number,
				default: 1
			}
		},
		data() {
			return {
				
			};
		},
		computed: {
			text() {
				if(this.result === 1) {
					return '等待审批'
				} else if(this.result === 2) {
					return '申请通过'
				} else if(this.result === 3) {
					return '申请未通过'
				} else {
					return ''
				}
			}
		}
	}
</script>

<style lang="scss">

</style>
